package com.base.taskreports.task.job;

import java.util.Date;
import java.util.List;

import com.base.taskreports.task.service.LjService;
import org.springframework.beans.factory.annotation.Autowired;

import com.base.taskreports.common.utlis.DateUtil;
import com.base.taskreports.reports.service.TblDiscountTransService;
import com.base.taskreports.reports.service.impl.TIndicatorsServiceImpl;
import com.base.taskreports.task.entity.TimeTaskEntity;
import com.base.taskreports.task.entity.UserMasterEntity;
import com.base.taskreports.task.service.TimedTaskService;
import com.base.taskreports.task.service.UserMasterService;
import com.base.taskreports.task.service.UserSalveService;
import com.vip.saturn.job.AbstractSaturnJavaJob;
import com.vip.saturn.job.SaturnJobExecutionContext;
import com.vip.saturn.job.SaturnJobReturn;

public class LjJob extends AbstractSaturnJavaJob {

	@Autowired
	private LjService ljService ;
	
	@Override
	public SaturnJobReturn handleJavaJob(String jobName, Integer shardItem, String shardParam,
			SaturnJobExecutionContext shardingContext) throws InterruptedException {
		
		String strDate = shardingContext.getJobParameter();

		// 立减跑批
		ljService.getLJ_M001(strDate);
		ljService.getLJ_M002(strDate);
		ljService.getLJ_M003(strDate);
		ljService.getLJ_M004(strDate);
		ljService.getLJ_M005(strDate);
		ljService.getLJ_M006(strDate);
		ljService.getLJ_M007(strDate);
		ljService.getLJ_M008(strDate);
		ljService.getLJ_M009(strDate);
		ljService.getLJ_M010(strDate);
		ljService.getLJ_M011(strDate);
		ljService.getLJ_M012(strDate);
		ljService.getLJ_M013(strDate);
		ljService.getLJ_M014(strDate);

		// TODO Auto-generated method stub
		return new SaturnJobReturn("I am the return result of shard item " + shardItem);
	}

}
